import { Injectable } from "@angular/core";
import { HttpService } from "../../../../common-ui";

@Injectable({
    providedIn: "root",
})
export class DataReportService {
    constructor(public hs: HttpService) {}
    /************************************** IP资产相关接口 *****************************************/
    addData(params){
        let url = "http://localhost:3000/api/tableFormBaseTab/createAlarmEventRecord";
        return this.hs.post(url, {}, params);
    }

    getListData(params){
        let url = "http://localhost:3000/api/tableFormBaseTab/getAlarmEventRecordList";
        return this.hs.post(url,{}, params);
    }

    reportDataAction(params){
        let url = "http://localhost:3000/api/tableFormBaseTab/operateAlarmEventRecord";
        return this.hs.post(url,{}, params);
    }

    /************************************** 分组件相关接口 *****************************************/

	getInstructionListFirst(params: any) {
        const url = "http://localhost:3000/api/componentAssembly/instructionListFirst";
        return this.hs.post(url, {}, params);
    }

    getInstructionListSecond(params: any) {
        const url = "http://localhost:3000/api/componentAssembly/instructionListSecond";
        return this.hs.post(url, {}, params);
    }

    getInstructionStatistics(params: any) {
        const url = "http://localhost:3000/api/componentAssembly/statistics";
        return this.hs.post(url, {}, params);
    }
}
